import request from "../utils/request";

// 用户浏览记录列表
export const browsingHistoryList = (params) => request.post(`/personalCenter/browsingHistory/list`, params)
// 用户浏览记录删除
export const browsingHistoryDelete = (params) => request.post(`/personalCenter/browsingHistory/delete`, params)
// 用户喜欢新增
export const collectAdd = (params) => request.post(`/personalCenter/collect/add`, params)
// 用户喜欢列表
export const collectList = (params) => request.post(`/personalCenter/collect/list`, params)
// 用户喜欢删除
export const collectDelete = (params) => request.post(`/personalCenter/collect/delete`, params)
// 个人中心
export const personalInformation = () => request.get(`/personalCenter/personalInformation`)
// 优惠卷列表
export const discountVoucherList = (params) => request.post(`/personalCenter/discountVoucher/list`, params)
// 修改密码
export const setPassword = (params) => request.post(`/personalCenter/personalInformation/password`, params)
// 删除图片
export const deletePhoto = (params) => request.post(`/commonUtil/deletePhoto`, params)
// 修改个人信息
export const personalInformationUpdate = (params) => request.post(`/personalCenter/personalInformation/update`, params)
// 申请成为商家
export const businessAdd = (params) => request.post(`/personalCenter/business/add`, params)
// 申请成为商家-商家分类
export const businessType = () => request.get(`/personalCenter/business/type`)
// 个人中心-消息管理-消息读取
export const messageCenterStatus = () => request.get(`/personalCenter/messageCenter/status`)
// 个人中心-消息管理-消息列表
export const messageCenterList = () => request.get(`/personalCenter/messageCenter/list`)
// 个人中心-消息管理-消息列表
export const messageCenterDelete = (id) => request.get(`/personalCenter/messageCenter/delete/${id}`)